package com.juli.school.app.controller;

import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.juli.school.service.bo.DeptBo;
import com.juli.school.service.bo.SchoolBo;
import com.juli.school.service.bo.StuBo;
import com.juli.school.service.impl.AppRegistService;
import com.juli.school.utils.core.model.CommonResp;

@Controller
@RequestMapping("/ssm")
public class AppRegistController {
	
	@Resource
	AppRegistService appRegistService;
	
	@RequestMapping("/selectSchool")
	@ResponseBody CommonResp<SchoolBo> selectSchool(String college){
		return appRegistService.selectSchool(college);
	}
	
	@RequestMapping("/selectTableDept")
	@ResponseBody CommonResp<DeptBo> selectTableDept(String collId){
		return appRegistService.selectTableDept(collId);
	}
	
	@RequestMapping("/insertTabStu")
	@ResponseBody CommonResp<Boolean> insertTabStu(StuBo stu){
		return appRegistService.insertTabStu(stu);
	}
	
}
